package com.Serverce;

import com.Util.Window;

import javax.swing.*;
import java.awt.*;

public class About {
    public About() {
        JFrame jf=new Window().window("关于我们",400,400,500,500);
        JPanel jPanel=new JPanel();
        JTextArea text=new JTextArea();
        text.setEditable(false);
        text.setLineWrap(true);
        text.setFont(new Font(null, Font.PLAIN, 18));
        JScrollPane scrollPane = new JScrollPane(
                text,
                ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
                ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER
        ){
            @Override
            public Dimension getPreferredSize() {
                return new Dimension(500,600);
            }
        };
        String num="\n酒店管理系统开发内测版\n(Hotel management system)\n\n作者:Java酒店管理设计组(邬建平)\n\n版本:0.0.1(内部测试版)\n\n时间:2022-6-15 22:37:01\n\n操作系统:Windows\n\n基于:Java SE Development Kit 17.0.3.1\n\n联系我们:\n邮箱:921013871@qq.com\n电话:19886959606";
        text.setText(num);
        text.append("\n成员:（邬建平、王宇、谢红东、马林冲、赵德富、罗江波、张涛、龙贤云）");
        jf.add(scrollPane);
        jf.setVisible(true);
        jf.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    }

    public static void main(String[] args) {
        new About();
    }
}
